const express = require('express')
const ejs = require('ejs')
const bodyParser = require('body-parser');
const login = require('./routes/login')

const app = express()

app.engine('html', ejs.__express)
app.set('view engine', 'html')

app.use(bodyParser.urlencoded({ extended: false }))
// parse application/json
app.use(bodyParser.json())


app.use('/login', login)

app.get('/', (req, res) => {
  res.send('首页')
})

app.listen(3005)